package tvp.ltdd.fake_call_sms.adater;

import tvp.ltdd.fake_call_sms.activity.FragmentCall;
import tvp.ltdd.fake_call_sms.activity.FragmentQuickCall;
import tvp.ltdd.fake_call_sms.activity.FragmentQuickSMS;
import tvp.ltdd.fake_call_sms.activity.FragmentSMS;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;


public class TabsPagerAdapter extends FragmentPagerAdapter {

	public TabsPagerAdapter(FragmentManager fm) {
		super(fm);
		// TODO Auto-generated constructor stub
	}

	@Override
	public Fragment getItem(int index) {
		switch(index){
		case 0:
			return new FragmentQuickCall();
		case 1:
			return new FragmentQuickSMS();
		case 2:
			return new FragmentCall();
		case 3:
			return new FragmentSMS();			
		}
		return null;
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return 4;
	}

}
